<?php session_start();
include"../admin/conexao.jsp";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>Recibo</title>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
	<link rel="stylesheet" type="text/css" href="../css2/css.css" media="screen" title="COLABORE">
	<link rel="stylesheet" type="text/css" href="../css2/print.css" media="print" title="COLABORE">
</head>
<body>
<div style='width:480px' class='recibo'>
<!--<div class="erro">RECIBO EM DESENVOLVIMENTO</div>-->
<h1>Recibo Impresso em: <?php echo date("d/m/Y H:i"); ?></h1>


<?php

if ($_REQUEST["pid_reserva"]) {
	$pid_reserva = $_REQUEST["pid_reserva"];
}else{
	$tp_habitacao = explode("-",$_GET["param1"]);
	$n_hospedes = explode("-",$_GET["param2"]);
	$pid_reserva = $n_hospedes[2];
}

require_once"../funcoes/hostel_reservas.jsp";
getReservas($pid_reserva,"informacoes_recibo");

require_once"../funcoes/hostel_lancamentos.jsp";
 getValores($pid_reserva,"lista");


?>

<table>
	<tr>
		<td>	
		<br />__________________________________________<br />
		Assinatura do Hospede</td>
		<td><img src='../images/barcode.jsp?barcode=<?php echo $pid_reserva;?>&height=50' border='0'></td>
	</tr>
</table>

<span class="noprint">
<BR><a href='javascript:window.print()'><img src="../images/btn_imprimir2.gif" width="110" height="29" border="0"></a>
</span>

</body>
</html>